package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BaseDiseaseMapper;
import com.ruoyi.base.domain.BaseDisease;
import com.ruoyi.base.service.IBaseDiseaseService;

/**
 * 病害操作Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-06
 */
@Service
public class BaseDiseaseServiceImpl implements IBaseDiseaseService 
{
    @Autowired
    private BaseDiseaseMapper baseDiseaseMapper;

    /**
     * 查询病害操作
     * 
     * @param id 病害操作主键
     * @return 病害操作
     */
    @Override
    public BaseDisease selectBaseDiseaseById(Long id)
    {
        return baseDiseaseMapper.selectBaseDiseaseById(id);
    }

    /**
     * 查询病害操作列表
     * 
     * @param baseDisease 病害操作
     * @return 病害操作
     */
    @Override
    public List<BaseDisease> selectBaseDiseaseList(BaseDisease baseDisease)
    {
        return baseDiseaseMapper.selectBaseDiseaseList(baseDisease);
    }

    /**
     * 新增病害操作
     * 
     * @param baseDisease 病害操作
     * @return 结果
     */
    @Override
    public int insertBaseDisease(BaseDisease baseDisease)
    {
        return baseDiseaseMapper.insertBaseDisease(baseDisease);
    }

    /**
     * 修改病害操作
     * 
     * @param baseDisease 病害操作
     * @return 结果
     */
    @Override
    public int updateBaseDisease(BaseDisease baseDisease)
    {
        return baseDiseaseMapper.updateBaseDisease(baseDisease);
    }

    /**
     * 批量删除病害操作
     * 
     * @param ids 需要删除的病害操作主键
     * @return 结果
     */
    @Override
    public int deleteBaseDiseaseByIds(Long[] ids)
    {
        return baseDiseaseMapper.deleteBaseDiseaseByIds(ids);
    }

    /**
     * 删除病害操作信息
     * 
     * @param id 病害操作主键
     * @return 结果
     */
    @Override
    public int deleteBaseDiseaseById(Long id)
    {
        return baseDiseaseMapper.deleteBaseDiseaseById(id);
    }
}
